package de.muc.vanbeek.be;

import java.util.Date;

import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.NodeEntity;

/**
 * Abstract base class to illustrate the use of neo4j with spring.
 */
@NodeEntity
public abstract class AbstractConfigurationItem<T extends ConfigurationItem<T>>
		implements ConfigurationItem<T> {

	@GraphId
	private Long id;
	private Date dateCreated;
	private Date dateModified;

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public Date getDateCreated() {
		return dateCreated;
	}

	@Override
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	@Override
	public Date getDateModified() {
		return dateModified;
	}

	@Override
	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}
}
